﻿using ProjectManageSystemApi.Enums;
using ProjectManageSystemApi.Models;
using System.Collections.Generic;

namespace ProjectManageSystemApi.Services
{
    public interface IProjectInfoServices
    {
        bool Create(ProjectInfoDto project);
        bool Update(ProjectInfoDto project);
        bool UpdateState(int id, ProjectInfoState state);
        Models.PageVo<List<ProjectInfoDto>> GetAll(Models.PageBo<ProjectInfoParams> pageBo);
        Models.PageVo<List<ProjectInfoDto>> GetByUserId(long userId, Models.PageBo<ProjectInfoParams> pageBo);
        bool HasExistName(string name, int id = 0);
        bool HasExistId(int id);
        bool IsFinish(int id);
        int AddAndGetIdByName(string name, long createUser);
    }
}
